<template>
    <div class="data-empty">
        <div class="image" :style="{height:size}">
            <img :src="image" alt="">
        </div>
        <p class="desc">{{ desc }}</p>
        <slot />
    </div>
</template>

<script>
export default {
    name: 'DataEmpty',
    props: {
        size: {
            type: String
        },
        image: {
            type: String,
            default:
                ''
        },
        desc: {
            type: String,
            default: '暂无数据'
        }
    },
    methods: {}
}
</script>
<style type="sass" scoped>
.data-empty {
  margin: 0 8px;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  &__image {
    height: 100px;
    margin-bottom: 8px;
    img {
      height: 100%;
      vertical-align: middle;
      border-style: none;
    }
  }
  &__desc {
    color: rgba(0, 0, 0, 0.65);
  }
}
</style>
